package io.kiki.stack.http.feign.SpringMvcContract;

import io.kiki.stack.http.feign.Target;

import java.lang.reflect.Method;

/**
 * Used to resolve a circuitbreaker name which will be used in
 * {@link org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory}.
 */
public interface CircuitBreakerNameResolver {

    String resolveCircuitBreakerName(String feignClientName, Target<?> target, Method method);

}
